package com.guigu.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author TaoLong
 * @since 2021-11-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("pd_area")
@ApiModel(value = "Area对象", description = "")
public class BaseArea implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "行政id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private Integer id;

    @ApiModelProperty(value = "父级行政")
    private Integer parentId;

    @ApiModelProperty(value = "行政名称")
    private String name;

    private String areaCode;

    private String cityCode;

    private String mergerName;

    private String shortName;

    private String zipCode;

    @ApiModelProperty(value = "行政区域等级（0: 省级 1:市级 2:县级 3:镇级 4:乡村级）")
    private Integer level;

    private String lng;

    private String lat;

    @ApiModelProperty(value = "拼音")
    private String pinyin;

    @ApiModelProperty(value = "首字母")
    private String first;

    private Date updateTime;

    private Long updateUser;

    private Date createTime;

    private Long createUser;
    /**
     * 过滤该字段
     */
    @TableField(exist = false)
    private String address;
}
